{extend name="$_admin_base_layout" /}

{block name="content"}
<div class="alert alert-info alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
    <h3 class="font-w300 push-15">订单详情</h3>
</div>
<div class="row">
    <div class="col-md-12">
    <div class="block-header bg-gray-lighter">
                <h3 class="block-title">商品详情</h3>
            </div>
    <div class="tab-pane active">
        <div class="table-responsive">
            <table class="table table-builder table-hover table-bordered table-striped js-table-checkable">
                <thead>
                    <tr>
                        <th class="column-id ">
                            <span class="pull-right">
                            </span>
                            编号                                    
                        </th>
                        <th class="column-id ">
                            <span class="pull-right">
                            </span>
                            图片                                    
                        </th>
                        <th class="column-id col-md-3">
                            <span class="pull-right">
                            </span>
                            商品标题                                    
                        </th>
                        <th class="column-id ">
                            <span class="pull-right">
                            </span>
                            商品规格                                    
                        </th>
                        <th class="column-id ">
                            <span class="pull-right">
                            </span>
                            现价/原价                               
                        </th>
                        <th class="column-openid ">
                            <span class="pull-right">
                            </span>
                            属性                                    
                        </th>
                        <th class="column-openid ">
                            <span class="pull-right">
                            </span>
                            购买数量                                    
                        </th>
                        <th class="column-openid ">
                            <span class="pull-right">
                            </span>
                            配送方式                                    
                        </th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="goods" id="vo"}
                    <tr class="">
                        <td class="">{$vo.id}</td>
                        <td>
                            <img class="image" src="__ROOT__/public/{$vo.path}">
                        </td>
                        <td class="">{$vo.name}</td>
                        <td class=""></td>
                        <td class="">{$vo.minPrice} / {$vo.originalPrice}</td>
                        <td class="">{$vo.status}</td>
                        <td class="">{$vo.total}</td>
                        <td></td>
                    </tr>
                    {/volist}
                    
                </tbody>
            </table>
        </div>
    </div>
    </div>
</div>
<div class="col-md-{$width|default=6}">
    <div class="block block-bordered">
        <div class="block-header bg-gray-lighter">
            <h3 class="block-title">订单信息</h3>
        </div>
        <div class="block-content">
            <table class="table">
                <tbody>
                <tr>
                    <td>订单编号 :</td>
                    <td>{$order.ordersn}</td>
                </tr>
                <tr>
                    <td>订单金额 </td>
                    <td id="product-update">{$order.price} 元</td>
                </tr>
                <tr>
                    <td>付款方式 </td>
                    <td>{$order.pay_type}</td>
                </tr>
                <tr>
                    <td>订单状态</td>
                    <td>{$order.status}</td>
                </tr>
                <tr>
                    <td>下单日期</td>
                    <td>{$order['create_time']|date="Y-m-d H:i:s",###}</td>
                </tr>
                <tr>
                    <td>备注</td>
                    <td>{$order.commit}</td>
                </tr>
                <tr>
                    <td>运费</td>
                    <td>{$order.freight} 元</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="col-md-{$width|default=6}">
    <div class="block block-bordered">
        <div class="block-header bg-gray-lighter">
            <h3 class="block-title">收件人信息</h3>
        </div>
        <div class="block-content">
            <table class="table">
                <tbody>
                <tr>
                    <td>姓名：</td>
                    <td>{$address['linkMan']}</td>
                </tr>
                <tr>
                    <td>手机号：</td>
                    <td id="product-update">{$address['mobile']}</td>
                </tr>
                <tr>
                    <td>地址：</td>
                    <td>{$address['address']}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="form-group col-md-12 col-xs-12">
    <div class="col-xs-12">
    <button class="btn btn-default" type="button" onclick="javascript:history.back(-1);return false;">返回</button>
</div>    
{/block}

{block name="script"}
<script src="__ADMIN_JS__/core/jquery.countTo.min.js"></script>
<script>
    jQuery(function () {
        App.initHelpers(['appear-countTo']);
    });
</script>
{/block}